package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : H_Joker
 * Date : 2016/5/13
 * Description :
 */
public class ApiGetHomePros<T> extends ApiBaseParamAbstract {

    public ApiGetHomePros(int pageIndex, String keyWord, String longitude, String latitude, String cityId, MyRetroCallBack<T> myRetroCallBack) {
        super(myRetroCallBack);
        mParams.put("pageIndex", pageIndex);
        mParams.put("keyWord", keyWord);
        mParams.put("baiduCityCode", cityId);
        mParams.put("longitude", longitude);
        mParams.put("latitude", latitude);
    }

    @Override
    public Call<RootResult> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getHomePros(mParams);
    }
}
